<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTableClicklogs extends Migration {
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up() {
		Schema::create('clicklogs', function (Blueprint $table) {
			$table->increments('id');
			$table->integer('six_id')->comment('六度id')->index();
			$table->integer('map_id')->comment('渠道与活动关联id');
			// $table->integer('business_id')->comment('商家id')->index();
			// $table->integer('activity_id')->comment('活动id')->index();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down() {
		Schema::dropIfExists('clicklogs');
	}
}
